package com.yztc.ui.cook;

import com.yztc.base.IModle;
import com.yztc.base.IPresenter;
import com.yztc.base.IView;
import com.yztc.bean.cook.CateGoryListBean;
import com.yztc.bean.cook.CookerListBean;
import com.yztc.bean.cook.ListFocusBean;
import com.yztc.bean.cook.NewFoodTypeBean;
import com.yztc.ui.cook.jiekou.CookOnloadListener1;
import com.yztc.ui.cook.jiekou.CookOnloadListener2;

import java.util.List;

/**
 * Created by Administrator on 2016/10/8.
 */

public class CookConstract {
    public interface View extends IView {
        public void onGetDataSuccess(List<CateGoryListBean> listCategory, List<ListFocusBean> listFocus, List<CookerListBean>chefListBeen);
        public void onGetNewFoodDataSuccess(List<NewFoodTypeBean> newFoodTypeBeanList);
        public void onGetDataFail(Throwable error);
        public void onGetNewFoodDataFail(Throwable error);
    }

    public interface Modle extends IModle {
        public void getData(String baseUrl,CookOnloadListener1 listener);
        public void getNewFoodData(String baseUrl,CookOnloadListener2 listener);
    }
    public interface Presenter extends IPresenter {
        public void getData();
        public void getNewFoodData();
    }
}
